package utils;

import java.util.HashMap;
import java.util.List;

public class Page<T> {

    /**
     * 页码
     */
    Integer pageIndex;
    /**
     * 页长
     */
    Integer pageSize;
    /**
     * 总页数
     */
    Integer pageCount;
    /**
     * 记实总数
     */
    Long totalCount;
    /**
     * 是否首页
     */
    Boolean first;
    /**
     * 是否尾页
     */
    Boolean last;
    /**
     * 数据列表
     */
    List<T> content;
    /**
     * sql查询的原始数据
     */
    List<HashMap<String, Object>> originalData;

    public Page() {
    }

    public Integer getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageCount() {
        return pageCount;
    }

    public void setPageCount(Integer pageCount) {
        this.pageCount = pageCount;
    }

    public Long getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Long totalCount) {
        this.totalCount = totalCount;
    }

    public Boolean getFirst() {
        return first;
    }

    public void setFirst(Boolean first) {
        this.first = first;
    }

    public Boolean getLast() {
        return last;
    }

    public void setLast(Boolean last) {
        this.last = last;
    }

    public List<T> getContent() {
        return content;
    }

    public void setContent(List<T> content) {
        this.content = content;
    }

    public List<HashMap<String, Object>> getOriginalData() {
        return originalData;
    }

    public void setOriginalData(List<HashMap<String, Object>> originalData) {
        this.originalData = originalData;
    }
}
